/**
 * @description HtmlIndex 底层组件
 * 提供echarts组件的公共函数方法
 * @description  chart 更新使用方式  chart.setOption(options, true)
 */
import ChartComponent from '../ChartComponent';
import {render} from "react-dom";
import React from "react";

export default class HtmlIndex extends ChartComponent{

  /**
   * 渲染子元素
   * @param option
   */
  public renderItem(option: any) {
    return <React.Fragment />
  }

  initInstance(module: any, option: any) {
    render(this.renderItem(option), this.box);
    return {};
  }

  update = (option: any) => {
    render(this.renderItem(option), this.box);
  }
}
